<?php
$title = "관리자메인";
$menu = 0;
require_once ('./teacher.head.php');
if(!$_POST && !$_SESSION) :
?>
<form method="post">
                            id : <input type="text" name="mb_id"/>
                            pass : <input type="password" name="mb_password"/>
                      <input type="image" width="83" height="46" border="0" src="images/login_but_enter.gif"/>
</form>
<?php 
elseif(!$_SESSION) :
//로그인 프로세스
    chdir('../bbs');
    $url = $_SERVER['PHP_SELF'];
    require_once 'login_check.php';
    chdir(dirname(__FILE__));
?>
<?php
else :
    $mb_id = $_SESSION['ss_mb_id'];
    list($mb_name) = mysql_fetch_row(mysql_query("SELECT mb_name FROM g4_member WHERE mb_id = '$mb_id'"));
endif;
?>
<?php
require_once ('./teacher.foot.php');
?>
